.app-container {
  display: flex;
  height: 100vh;
  background: #f0f2f5;
  overflow: hidden;
}

.left-panel {
  width: 300px;
  padding: 20px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
}

.main-panel {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.app {
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  box-sizing: border-box;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 500;
}

.app-content {
  display: flex;
  flex: 1;
  gap: 20px;
  min-height: 0; /* 重要：允许内容区域滚动 */
}

.left-panel {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0; /* 防止左侧面板被压缩 */
}

/* 编辑器容器样式 */
.editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* 重要：允许编辑器滚动 */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* 确保内容不会溢出 */
}

.connection-controls {
  padding: 0 0 10px 0;
}

.ws-settings-button {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-settings-button:hover {
  background: #f8f8f8;
  border-color: #d0d0d0;
}

.ws-icon {
  font-size: 16px;
  color: #1976d2;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
} 